package com.zm.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class CommAction {
	/**
	 * 跳转页面
	 * 
	 * @return
	 */
	@RequestMapping("/jump")
	public String jump(String jump) {
		//跳转至主界面
		return jump;
	}
	/**
	 * 跳转页面2
	 * 
	 * @return
	 */
	@RequestMapping("/jump2")
	public ModelAndView jump2(String jump,Integer userid) {
		//参数为即将跳转的页面
		ModelAndView mav=new ModelAndView(jump);
		//request加入适当的值
		mav.addObject("userid",userid);
		return mav;
	}

}
